package response

// Error code constant definitions
const (
	SUCCESS        = 200 // Success
	ERROR          = 500 // Error
	INVALID_PARAMS = 400 // Invalid parameters
	UNAUTHORIZED   = 401 // Unauthorized
	FORBIDDEN      = 403 // Forbidden
	NOT_FOUND      = 404 // Resource not found

	// Business error codes (starting with 10000)
	USER_NOT_EXIST         = 10001 // User does not exist
	USER_NAME_EXIST        = 10002 // Username already exists
	USER_PASSWORD_ERR      = 10003 // User password error
	USER_EMAIL_EXISTS      = 10004 // Email already exists
	USER_CAPTCHA_ERR       = 10005 // Captcha error
	USER_PASSWORD_EXISTS   = 10006 // User already has password set
	USER_NO_PASSWORD_SET   = 10007 // User has no password set
	USER_MOBILE_EXISTS     = 10008 // Mobile already exists
	USER_PASSWORD_REQUIRED = 10009 // Password is required for users with password

	// System error codes (starting with 20000)
	DATABASE_ERROR  = 20001 // Database error
	CACHE_ERROR     = 20002 // Cache error
	FILE_OPER_ERROR = 20003 // File operation error
)
